package com.loongtech.bi.entity.pay;

import com.loongtech.core.util.Time;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "new_user_addcash_user")
public class EntityNewUserAddCashUser implements Serializable {
    private static final long serialVersionUID = 2L;

    @Id
    private Date day; // 日期
    @Id
    private String serverid;
    @Id
    private String channelid;
    @Id
    private String platformid;
    @Column(columnDefinition = "int(11) NOT NULL default 0")
    private int new_user_addcash_user;

    public String getKey() {
        return Time.getDateStr(day) + "-" + platformid + "-" + channelid + "-" + serverid;
    }

    public Date getDay() {
        return day;
    }

    public void setDay(Date day) {
        this.day = day;
    }

    public String getServerid() {
        return serverid;
    }

    public void setServerid(String serverid) {
        this.serverid = serverid;
    }

    public String getChannelid() {
        return channelid;
    }

    public void setChannelid(String channelid) {
        this.channelid = channelid;
    }

    public String getPlatformid() {
        return platformid;
    }

    public void setPlatformid(String platformid) {
        this.platformid = platformid;
    }

    public int getNew_user_addcash_user() {
        return new_user_addcash_user;
    }

    public void setNew_user_addcash_user(int new_user_addcash_user) {
        this.new_user_addcash_user = new_user_addcash_user;
    }
}